<!--
 * @Author: your name
 * @Date: 2022-02-18 13:50:12
 * @LastEditTime: 2022-05-24 17:11:38
 * @LastEditors: vn53el9 vn53el9@email.wal.mart.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \ias_ui\src\views\coi\schedule\index\onlineBuildingTasks.vue
-->
<template>
  <SwitchingTable v-model="value" :component-list="componentList">
    <component :is="value" :menu-name="value" />
  </SwitchingTable>
</template>

<script>
import scheduleList from '@/views/coi/schedule/index/scheduleList'
import newProducts from '@/views/coi/spuManagement/index/spuManagementList'
import safeguard from '@/views/coi/spuManagement/components/listText'
import commodityMaintain from '@/views/coi/commodityM/commodity-maintain'
import SwitchingTable from '@/views/coi/components/SwitchingTable'
export default {
  name: 'OnlineBuildingTasks',
  components: {
    scheduleList,
    newProducts,
    safeguard,
    commodityMaintain,
    SwitchingTable
  },
  data() {
    return {
      value: 'scheduleList',
      componentList: [
        {
          name: 'SKU创建',
          id: 'scheduleList'
        },
        {
          name: 'SKU维护',
          id: 'commodityMaintain'
        },
        {
          name: 'SPU创建',
          id: 'newProducts',
          hidden: window.appConfig.hiddenNewProducts
        },
        {
          name: 'SPU维护',
          id: 'safeguard',
          hidden: window.appConfig.hiddenNewProducts
        }
      ]
    }
  }
}
</script>
